package es.us.isa.jdbl.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;
import javax.persistence.Table;

@Entity
@SecondaryTables({
	@SecondaryTable(name="content_type_uprofile", catalog = "webisa", pkJoinColumns={
			@PrimaryKeyJoinColumn(name="nid", referencedColumnName="nid")}),
	@SecondaryTable(name="content_field_email", catalog = "webisa", pkJoinColumns={
			@PrimaryKeyJoinColumn(name="nid", referencedColumnName="nid")}),
	@SecondaryTable(name="content_field_url", catalog = "webisa", pkJoinColumns={
			@PrimaryKeyJoinColumn(name="nid", referencedColumnName="nid")}),
})
@DiscriminatorValue("uprofile")
public class Member extends AbstractNode implements Serializable{
	@Column(name="field_name_value", table="content_type_uprofile")
	private String name;
	@Column(name="field_surname_value", table="content_type_uprofile")
	private String surname;
	@Column(name="field_position_value", table="content_type_uprofile")
	private String position;
	@Column(name="field_office_value", table="content_type_uprofile")
	private String office;
	@Column(name="field_telephone_value", table="content_type_uprofile")
	private String telephone;
	@Column(name="field_email_email", table="content_field_email")
	private String email;
	@Column(name="field_url_url", table="content_field_url")
	private String teachingWeb;
	private int uid;
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	public String getSurname() {
		return surname;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getPosition() {
		return position;
	}
	public void setOffice(String office) {
		this.office = office;
	}
	public String getOffice() {
		return office;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}
	public void setTeachingWeb(String teachingWeb) {
		this.teachingWeb = teachingWeb;
	}
	public String getTeachingWeb() {
		return teachingWeb;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	

}
